<?php
namespace Common\Model;

use Think\Model;


class SystemSlideModel extends \BaseModel
{
    /**
     * 获取轮播图
     */
    public function getBannar($where, $limit = 30, $order = 'sort_order asc')
    {
        $this->store_id = getStoreID();
        $data = $this->where("position='$where' and status='$status' and store_id='$this->store_id'")->order($order)->limit($limit)->select();
        return $data;
    }
}